package com.example.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.example.entity.SysUser;
import com.example.mapper.SysUserMapper;
import com.example.vo.SysUserVO;
import io.github.luminion.sqlbooster.extension.pagehelper.PageHelperBooster;
import io.github.luminion.sqlbooster.model.api.QueryParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户服务实现类
 *
 * @author bootystar
 */
@Service
@DS("postgresql")
public class PostgresService implements PageHelperBooster<SysUser,SysUserVO> {
    @Autowired
    private SysUserMapper sysUserMapper;


    @Override
    public List<SysUserVO> selectByBooster(QueryParams<SysUser> queryParams, Object page) {
        return sysUserMapper.selectByBooster(queryParams,null);
    }
}
